package biz.yfsoft.app.fastframework.admin;

import java.util.Map;

import com.jfinal.kit.EncryptionKit;


public class UserController extends AdminController {
	
	@Override
	protected String tableName() {
		return "sys_user";
	}

	public void index() {
		render("/admin/users/list.jsp");
	}
	
	@Override
	protected Map<String, Object> prevAdd(Map<String, Object> args) {
		String encode = getPara("pass_encode", "MD5");
		String pass = getPara("login_pass", "123");
		pass = EncryptionKit.encrypt(encode, pass);
		args.put("login_pass", pass);
		return args;
	}
}
